var Mock = require('mockjs')

module.exports = () => {
  const getUsers = () => {
    return {
      ...Mock.mock({
        'users|10': [
          {
            'id|+1': 1,
            name: '@cname',
            'age|18-32': 1,
            address: '@county(true)',
            'status|1': ['published', 'draft', 'deleted']
          }
        ]
      }),
      total: 100
    }
  }

  return {
    users: getUsers(),
    info: { id: 1 }
  }
}
